import Router from 'vue-router'
import Vue from 'vue'
Vue.use(Router)

export default new Router({
    mode:'history',
    routes:[
        {
            path:'/',
            redirect:'/home'
        },
        {
            path:'/home',
            component:()=>import('@/components/main.vue')
        },{
            path:'/test',
            component:()=>import('@/components/HelloWorld.vue')
        }
    ]
})